package com.ccb.sc.common.modules.shopkeeper.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccb.sc.common.modules.shopkeeper.entity.Shopkeeper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccb.sc.common.modules.shopkeeper.vo.ShopkeeperTeamListVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 店主 Mapper 接口
 * </p>
 *
 * @author ken
 * @since 2023-02-12
 */
public interface ShopkeeperMapper extends BaseMapper<Shopkeeper> {

    Page<ShopkeeperTeamListVo> selectTeamList(Page<Shopkeeper> page, @Param("shopkeeperId") Long shopkeeperId);

    List<Long> selectAllChildId(@Param("memberId") Long memberId);

    BigDecimal selectAllAmount(@Param("memberIds") List<Long> memberIds);
}
